package com.ebraga.trackerclub.android.handler.service;

import com.ebraga.trackerclub.android.handler.core.PositionHandlerImpl;
import com.ebraga.trackerclub.android.manager.api.PositionManager;
import com.ebraga.trackerclub.android.manager.api.UserManager;
import com.ebraga.trackerclub.android.manager.service.PositionServiceManager;
import com.ebraga.trackerclub.android.manager.service.UserServiceManager;
import com.ebraga.trackerclub.android.util.api.AndroidContext;

public class PositionServiceHandler extends PositionHandlerImpl{

	public PositionServiceHandler(AndroidContext context) {
		String enviroment = System.getProperty("Enviroment");
				
		if( enviroment==null || !enviroment.equals("UNIT_TEST") ) {			
			setPositionManager( new PositionServiceManager(context) );
			setUserManager    ( new UserServiceManager    (context) );
		}
	}
	
	public void setPositionManager (PositionManager positionManager){
		super.setPositionManager(positionManager);
	}
	
	public void setUserManager (UserManager userManager){
		super.setUserManager(userManager);
	}

}
